package com.example.chaindemo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@Controller
@RequestMapping("/")
@EnableSwagger2
@SpringBootApplication(exclude = {SecurityAutoConfiguration.class})
public class ChainDemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(ChainDemoApplication.class, args);
    }

    @GetMapping
    public String index(){
        return "index";
    }
}
